﻿using KeyStone.Ioc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IocContainerExample.TestHarness
{
   class Example3
   {
      public Example3()
	   {
         IIocContainer container = new IocContainer();
         container.RegisterUnResolvedTypes = true;


         IMyExample3 temp = container.Resolve<MyExample3>();

         Console.WriteLine("Example 3 : {0}" ,temp.Text);
	   }
   }


   public interface IMyExample3
   {
      string Text { get; set; }
   }

  
   public class MyExample3 : IMyExample3
   {
      public MyExample3()
      {
         Text = "hello";
      }

      public string Text { get; set; }
   }
}
